package com.by.core.utils;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;



public class DateUtils {


    /**
     * 获取系统年月 如202502
     * @return
     */
    public static String getSystemTimeYM(){
        LocalDate localDate = LocalDate.now();

        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yMM");
        String tmp = localDate.format(formatter);

        tmp =tmp.substring(2);
        return tmp;
    }




}
